﻿/*********************************************************************************
**                                                                              **
**  Copyright (C) 2019-2023 LiLong                                              **
**  This file is part of QCustomUi.                                             **
**                                                                              **
**  QCustomUi is free software: you can redistribute it and/or modify           **
**  it under the terms of the GNU Lesser General Public License as published by **
**  the Free Software Foundation, either version 3 of the License, or           **
**  (at your option) any later version.                                         **
**                                                                              **
**  QCustomUi is distributed in the hope that it will be useful,                **
**  but WITHOUT ANY WARRANTY; without even the implied warranty of              **
**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               **
**  GNU Lesser General Public License for more details.                         **
**                                                                              **
**  You should have received a copy of the GNU Lesser General Public License    **
**  along with QCustomUi.  If not, see <https://www.gnu.org/licenses/>.         **
**********************************************************************************/

*
{
    font-family: 'Microsoft YaHei';
    outline: none;
}

/***************************QCtmTitleBar************************************/

.QCtmTitleBar #closeBtn
{
    qproperty-icon: url(:/QCustomUi/Resources/close-light.png);
}

.QCtmTitleBar #minimumSizeBtn
{
    qproperty-icon: url(:/QCustomUi/Resources/minimize-light.png);
}

.QCtmTitleBar #maximumSizeBtn[maximumsized=true]
{
    qproperty-icon: url(:/QCustomUi/Resources/maximize-light.png);
}

.QCtmTitleBar #maximumSizeBtn[maximumsized=false]
{
    qproperty-icon: url(:/QCustomUi/Resources/maximize_max-light.png);
}

QCtmTitleBar QAbstractButton
{
    padding-left: 5px;
    padding-right: 5px;
    border: none;
    background-color: transparent;
}

QCtmTitleBar QAbstractButton:hover
{
    background-color: #C6C6C6;
    border: none;
}

QCtmTitleBar QAbstractButton:pressed
{
    background-color: #C0C0C0;
    border: none;
}

.QCtmTitleBar
{
    background: #D9D9D9;
    font-weight: 400;
    color: rgba(94,94,94,1);
}

.QCtmTitleBar QMenuBar
{
    background: #D9D9D9;
}

.QCtmTitleBar QMenuBar::item
{
    font-family: 'Microsoft YaHei';
    font-weight: 400;
    color: rgba(94,94,94,1);
    background-color: #D9D9D9;
}

.QCtmTitleBar QMenuBar::item:hover
{
    background-color: #C6C6C6;
}

.QCtmTitleBar QMenuBar::item:pressed
{
    background-color: #C6C6C6;
}

/*********************************************************************/

/****************************QStatusBar*******************************/

.QStatusBar
{
    max-height: 20px;
    min-height: 20px;
    color: white;
    background: #68217A;
}

QStatusBar QToolButton
{
    color: white;
    border: none;
}

QStatusBar QToolButton:hover
{
    background-color: #1F8AD2;
}

QStatusBar::item
{
    border: none;
}
/********************************************************************/

/********************QCtmNavigationBar**********************/
QCtmNavigationBar::separator
{
    margin-top: 8px;
    margin-bottom: 8px;
    width: 1px;
    background: #CCCCCC;
}

.QCtmNavigationBar
{
    max-height: 50px;
    min-height: 50px;
    font-family: 'Microsoft YaHei';
    font-weight: 400;
    color: #4F4F4F;
    background: #F3F3F3;
    border-bottom: 1px solid #D9D9D9;
}

.QCtmNavigationBar .QCtmToolButton, QCtmUserButton
{
    padding-left: 5px;
    padding-right: 5px;
    font-family: 'Microsoft YaHei';
    font-weight: 400;
    color: rgba(79,79,79,1);
    border: 0px;
    background-color: transparent;
}

.QCtmNavigationBar .QCtmToolButton:hover, QCtmUserButton:hover
{
    background-color: #cbe5ff;
}

.QCtmNavigationBar .QCtmToolButton:pressed, QCtmUserButton:pressed
{
    background-color: #cbe5ff;
}

.QCtmNavigationBar .QCtmToolButton:checked, QCtmUserButton:checked
{
    background-color: #C0C1C3;
}

.QCtmNavigationBar #help
{
    qproperty-icon: url(:/QCustomUi/Resources/help-light.png);
}

/****************************************************************/

/**************************QCtmNavigationImageButton****************************/
QCtmNavigationImageButton
{
    background-color: transparent;
    border: none;
}

QCtmNavigationImageButton:hover
{
    background-color: #F0F0F0;
}

QCtmNavigationImageButton:pressed
{
    background-color: white;
}

QCtmNavigationImageButton:checked
{
    background-color: white;
}

/************************************************************************/

/***********************QCtmNavigationSideBar**************************/
.QCtmNavigationSideBar
{
    background: #2C2C2C;
}

QCtmNavigationSideBar QToolButton
{
    border: none;
    background-color: transparent;
}
/************************************************************/

/*************************QCtmTabWidget**********************/

.QCtmTabWidget #closeButton
{
    width: 20px;
    height: 20px;
    border: none;
}

.QCtmTabWidget #closeButton
{
    image: url(:/QCustomUi/Resources/hideButton-light.png);
}

.QCtmTabWidget #closeButton:hover
{
    background: #CBE5FF;
}

.QCtmTabWidget #closeButton:pressed
{
    image: url(:/QCustomUi/Resources/hideButton.png);
    background: #2477CE;
}

QCtmTabWidget
{
    border: none;
    border-top: 1px solid #D3D3D3;
    background: white;
}

QCtmTabWidget::pane
{
    background: white;
    border: none;
}

QCtmTabWidget QTabBar
{
    margin-left: 10px;
    margin-top: 0px;
    font-family: 'Microsoft YaHei';
    background: white;
    border: none;
    border-top: 1px solid #D3D3D3;
}

QCtmTabWidget QTabBar::tab
{
    margin-top: 1px;
    min-height: 30px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: white;
    border: none;
    font-family: 'Microsoft YaHei';
}

QCtmTabWidget QTabBar::tab:selected
{
    color: #1F1F1F;
    border-bottom: 1px solid #C3C3C3;
}

QCtmTabWidget QTabBar::tab:!selected
{
    color: #4F4F4F;
}

/************************************************************/

/******************QCtmDrawerWidget*************************/

.QCtmDrawerItemWidget #title
{
    min-height: 30px;
    max-height: 30px;
    background: #E1E0E0;
    font-family: 'Microsoft YaHei';
    font-weight: bold;
    color: #4F4F4F;
    border: none;
}

.QCtmDrawerItemWidget #title::hover
{
    border: 1px solid #8ebded;
}

.QCtmDrawerItemWidget #title::pressed
{
    border: 1px solid #2477ce;
}

.QCtmDrawerItemWidget #title::branch:close
{
    image: url(:/QCustomUi/Resources/tree-close-light.png);
}

.QCtmDrawerItemWidget #title::branch:open
{
    image: url(:/QCustomUi/Resources/tree-open-light.png);
}

.QCtmDrawerItemWidget #title QToolButton
{
    margin: 1px;
    border: none;
}

.QCtmDrawerItemWidget #title QToolButton:hover
{
    background: #E5F3FF;
}

.QCtmDrawerItemWidget #title QToolButton:pressed, .QCtmDrawerItemWidget #title QToolButton:checked
{
    background: #CDE8FF;
}

.QCtmDrawerItemWidget #Container
{
    background: #F3F3F3;
}

.QCtmDrawerItemWidget
{
    background: #F3F3F3;
}

/************************************************************/


/************************************************************/

QCtmNavigationSidePane
{
    background-color: white;
}

QCtmNavigationSidePane #qcustomui_closeBtn
{
    background: transparent;
    image: url(:/QCustomUi/Resources/close-light.png);
    border: none;
}

QCtmNavigationSidePane #closeBtn:hover
{
    background: transparent;
}

QCtmNavigationSidePane #closeBtn:pressed
{
    background: transparent;
}

QCtmNavigationSidePane #qcustomui_title
{
    padding-left: 10px;
    font-family: 'Microsoft YaHei';
    font-weight: 400;
    color: #515151;
}

QCtmNavigationSidePane #qcustomui_titleBar
{
    min-height: 28px;
}

QCtmNavigationSidePane #qcustomui_clearAll
{
    background: transparent;
    color: #0083CE;
    text-decoration: underline;
}

QCtmNavigationSidePane #qcustomui_clearAllBase
{
    background: white;
}
/************************************************************/

/*********************QCtmToolBox************************/
.QCtmToolBox
{
    background: #eeeef2;
    border: 1px solid #CCCEDB;
}

.QCtmToolBox #toolBoxSplitter::handle:vertical
{
    height: 1px;
    background: #d0d0d0;
}

QCtmToolBoxItemTitle
{
    outline: none;
    min-height: 24px;
    max-height: 24px;
    background: #E0E1E2;
    color: #4F4F4F;
    padding-left: 20px;
}

QCtmToolBoxItemTitle[qcustomui_active="true"]
{
    background: #007ACC;
    color: white;
}

QCtmToolBoxItemTitle QCtmToolButton
{
    border: none;
    min-width: 16px;
    max-width: 16px;
    padding: 5px;
}

QCtmToolBoxItemTitle QCtmToolButton:hover
{
    background: #d9d9d9;
}

QCtmToolBoxItemTitle QCtmToolButton[qcustomui_active="true"]:hover
{
    background: #52B0EF;
}

/************************************************************/

/*********************QCtmMessageTipButton**************************/

QCtmMessageTipButton
{
    border: none;
    background: transparent;
}

QCtmMessageTipButton:hover
{
    background-color: #cbe5ff;
}

QCtmMessageTipButton:pressed
{
    background-color: #cbe5ff;
}

/************************************************************/

/*********************QCtmMessageView**************************/

.QCtmMessagetTipView #title
{
    font-family: 'Microsoft YaHei';
    font-weight: 400;
    color: white;
}

.QCtmMessagetTipView #titleBar
{
    background: rgba(0,122,204,255);
}

.QCtmMessagetTipView #closeBtn
{
    qproperty-icon: url(:/QCustomUi/Resources/close.png);
    border: none;
}

.QCtmMessagetTipView #qcustomui-tipview
{
    background: #F5F5F5;
    selection-background-color: red;
    border: none;
}
/************************************************************/

/*************************QCtmLogWidget*********************/
.QCtmLogWidget
{
    qproperty-infoIcon: url(:/QCustomUi/Resources/info.png);
    qproperty-warningIcon: url(:/QCustomUi/Resources/warning.png);
    qproperty-errorIcon: url(:/QCustomUi/Resources/Error.png);
}

.QCtmTabWidget QAbstractButton
{
    background: transparent;
}

.QCtmTabWidget QAbstractButton::hover
{
    background: #CBE5FF;
    border: 1px solid #2477CE;
}

.QCtmTabWidget QAbstractButton::pressed
{
    background: #2477CE;
    border: 1px solid #2477CE;
}

.QCtmTabWidget QAbstractButton::checked
{
    background: white;
    border: 1px solid #2477CE;
}

.QCtmTabWidget #clearAction
{
    image: url(:/QCustomUi/Resources/clear-light.png);
}

.QCtmTabWidget #clearAction:hover
{
    border: none;
}

.QCtmTabWidget #clearAction:pressed
{
    image: url(:/QCustomUi/Resources/clear.png);
}

.QCtmTabWidget #copyAction
{
    image: url(:/QCustomUi/Resources/copy-light.png);
}

.QCtmTabWidget #copyAction:hover
{
    border: none;
}

.QCtmTabWidget #copyAction:pressed
{
    image: url(:/QCustomUi/Resources/copy.png);
}

.QCtmTabWidget #searchEdit
{
    min-height: 20px;
    max-height: 20px;
    min-width: 185px;
    max-width: 185px;
    background: white;
    color: #717171;
    border: 1px solid #D8D9E2;
}

.QCtmTabWidget #searchEdit:hover, .QCtmTabWidget #searchEdit:focus
{
    border: 1px solid #2477CE;
}

.QCtmTabWidget #searchEdit::drop-down
{
    border: none;
    background: transparent;
}

.QCtmTabWidget #searchEdit::drop-down:hover
{
    background: #CBE5FF;
    border-left: 1px solid #2477CE;
}

.QCtmTabWidget #searchEdit::drop-down:pressed
{
    background: #2477CE;
}

.QCtmTabWidget #searchEdit::down-arrow
{
    image: url(:/QCustomUi/Resources/drop-down-light.png);
}

.QCtmTabWidget #searchEdit::down-arrow:pressed
{
    image: url(:/QCustomUi/Resources/drop-down.png);
}

.QCtmComboBox #searchAction
{
    border: none;
    image: url(:/QCustomUi/Resources/search-light.png);
}

.QCtmComboBox #searchAction:hover
{
    background: #CBE5FF;
}

.QCtmComboBox #searchAction:pressed
{
    image: url(:/QCustomUi/Resources/search.png);
    background: #2477CE;
}

/************************************************************/

/***********************QCtmMessageBox***********************/


QCtmMessageBox
{
    background: #F0F0F0;
}

QCtmMessageBox QPushButton
{
    min-width: 89px;
    min-height: 27px;
    border: 1px solid #B3B3B3;
    background: #E1E1E1;
}

QCtmMessageBox QPushButton:focus
{
    border: 2px solid #0078d7;
}

QCtmMessageBox QPushButton:hover
{
    border: 1px solid #0078d7;
    background: #E5F1FB;
}

QCtmMessageBox QPushButton:pressed
{
    border: 1px solid #005499;
    background: #CCE4F7;
}

/************************************************************/

/**********************QCtmComboBox*************************/
QCtmComboBox
{
    background: #FFFFFF;
    border: 1px solid #999999;
    color: #808080;
}

QCtmComboBox:hover
{
    border: 1px solid #2477CE;
}

QCtmComboBox:disabled
{
    background: #D2D2D2;
    border: 1px solid #E1E1E1;
    color: #AAAAAA;
}

QCtmComboBox::drop-down
{
    background: transparent;
    border: none;
}

QCtmComboBox::drop-down:hover
{
    background: #CBE5FF;
    border-left: 1px solid #2477CE;
}

QCtmComboBox::drop-down:pressed
{
    background: #2477CE;
}

QCtmComboBox::down-arrow
{
    image: url(:/QCustomUi/Resources/drop-down-light.png);
}

QCtmComboBox::down-arrow:pressed
{
    image: url(:/QCustomUi/Resources/drop-down.png);
}

QCtmComboBox::down-arrow:disabled
{
    image: url(:/QCustomUi/Resources/drop-down.png);
}

QCtmComboBox QListView
{
    background: #F6F6F6;
}

QCtmComboBox QListView::item
{
    padding-left: 5px;
    height: 21px;
    color: #808080;
    background: transparent;
}

QCtmComboBox QListView::item:hover
{
    background: #CBE5FF;
    color: #808080;
}

QCtmComboBox QListView::item:selected
{
    background: #CBE5FF;
    color: #808080;
}

/*************************QCtmTableView************************************/
QCtmTableView
{
    qproperty-alternatingRowColors: true;
    background: white;
    alternate-background-color: #F7F7F7;
    border: none;
}

QCtmTableView::item:hover
{
    background: #CBE5FF;
}

QCtmTableView::item:selected
{
    background: #55aaff;
    color: white;
}

QCtmTableView #hHeader
{
    background: transparent;
    border: none;
    font-weight: bold;
    color: #1E1E1E;
}

QCtmTableView #hHeader::section
{
    background: transparent;
    height: 27px;
    border: none;
}

QCtmTableView #vHeader
{
    background: white;
    border: none;
}

QCtmTableView #vHeader::section
{
    background: white;
    border: none;
}

QCtmTableView QTableCornerButton::section
{
    background: transparent;
    border: none;
}

QCtmIPAddressEdit
{
    background: #FFFFFF;
    border: 1px solid #999999;
}

QCtmIPAddressEdit:hover
{
    border: 1px solid #2477CE;
}

QCtmIPAddressEdit:focus
{
    border: 1px solid #2477CE;
}

QCtmIPAddressEdit:disabled
{
    color: #AAAAAA;
    border: 1px solid #E1E1E1;
    background: #D2D2D2;
}

QCtmNavigationMainMenu QCtmMainMenuButton
{
    color: rgba(255,255,255,153);
    padding: 9px;
    text-align: left bottom;
    font-weight: bold;
}

QCtmEditLabel QToolButton
{
    background: #E1E1E1;
    border: none;
}

QCtmEditLabel QToolButton:hover
{
    background: #E1F0FF;
}

QCtmEditLabel QToolButton:pressed
{
    background: #CBE5FF;
}

QCtmDockTitle
{
    color: #808080;
    background: #EEEEF2;
}

QCtmDockTitle::focus
{
    color: #FEFEFE;
    background: #007ACC;
}

QCtmDockTitle QAbstractButton
{
    border: none;
}

QCtmDockTitle QAbstractButton
{
    background: transparent;
}

QCtmDockTitle QAbstractButton:hover
{
    background: rgba(255,255,255,100);
}

QCtmDockTitle QAbstractButton:pressed, QCtmDockTitle QAbstractButton:checked
{
    margin: 0;
    background: #0e6198;
}

QCtmDockTitle QToolButton#qctmdocking_close_btn
{
    image: url(:/QCustomUi/Resources/close-light.png);
}

QCtmDockTitle QToolButton#qctmdocking_float_btn[float=false]
{
    image: url(:/QCtmDocking/Resources/QCtmDocking/dockTitleFixed.svg);
}

QCtmDockTitle QToolButton#qctmdocking_float_btn[float=true]
{
    image: url(:/QCtmDocking/Resources/QCtmDocking/dockTitleFloat.svg);
}

QCtmStageProgressBar
{
    background: #E6E6E6;
}

QCtmClassifyTreeView::item:hover
{
    background: #CBE5FF;
}
